home *** CD-ROM | disk | FTP | other *** search
- HyperShell Hypertext control system Version 2.5
-
- Quick Reference Guide
-
- Copyright (c) 1988,1989 Text Technology
-
- File format
-
- .REMARK
- (text)
- .CHECK settings
-
- .NOTE name
- (text with formatting and references)
- .MENU name
- (options)
- .SCRIPT name
- (actions)
- .SCRIPT SETUP
- (limited actions)
- .HEADER
- (text with formatting and references)
- .FOOTER
- (text with formatting and references)
- .INDEX
-
- .FRAME name
- .TITLE title text
- (text with formatting and references)
- .MENU name
- (options)
- .NOTE name
- (text with formatting and references)
- .SCRIPT name
- (actions)
- .END
-
- References
-
- Curly braces indicate optional parameters.
-
- ~Fframename{~Paction}{~Kx}~E
- ~fframename{~Paction}{~Kx}~E
- ~nlocalnote{~Paction}{~Kx}~E
- ~Nglobalnote{~Paction}{~Kx}~E
- ~tfilenote{~Paction}{~Kx}~E
- ~mlocalmenu{~Paction}{~Kx}~E
- ~Mglobalmenu{~Paction}{~Kx}~E
- ~slocalscript{~Paction}{~Kx}~E
- ~Sglobalscript{~Paction}{~Kx}~E
- ~Aname~Paction{~Kx}~E
- ~Ientry area~Paction pattern{~Kx}~E
-
- Formatting
-
- ~Ln (nn = 1 to 23) Line
- ~Cn (nn = 1 to 80) Column
- ~Wn (nn = 1 to 72) Field width
- ~G Screen break
- ~Tc (c= K,B,G,C,R,M,Y,W,k,b,g,c,r,m,y,w) Text color
- ~Bc (c= K,B,G,C,R,M,Y,W) Background color
- ~Vi (i= L,N,H) Low, Normal, High Video (for mono displays)
- ~Dstb (s=A to Z;t,b as for ~T,~B) Colour scheme
- ~On (n=0,1,2 etc) - prints ON or OFF Option setting
- ~H Hidden line
- ~Q Immediate reference
-
- Menu format
-
- In a menu, choices can have an action specification appended :-
-
- choice 1 |action
- choice 2 |action
- etc |action
-
- Variables
-
- System variables - these cannot be set, but can be expanded.
-
- $0 full path name of current HyperShell program
- $1 current frame name
- $2 current frame title
- $3 current file name
- $4 current date
- $5 current time
- $6 backtrack list depth
- $7 current directory
- $8 original directory
- $9 HyperShell name and version
- $? Error status of last error
- $@ Remaining memory
- $_ File prompt (becomes null string when viewing file)
- $^ Numeric exit code from command executed via X/x action.
-
- These can be set
-
- $: Exclusion list of file extensions
- $< Filename from directory display
- $> File extension from directory display
-
- Application variables - these are set by an application hyperfile,
- and can be expanded.
-
- $A to $Z application variables
- $a to $z application variables
- $(xxxxxx) named application variable
-
- Variables are expanded in each line in text before it is displayed
- and in each action string before it is executed.
-
- Actions
-
- Axxxxx do action xxxxx
- acxxxxx do action xxxxx if condition c is set
- B backtrack one frame
- bn backtrack to depth n
- C Change drive/directory
- D{command line} Dos shell command
- d{command line} Dos shell command (don't wait when finished)
- E Execute command with no return (Chain)
- evsabc... Expand (split) v on s to a,b,c etc.
- F{name{^file}} Go to frame (first) {in file} (stack backtrack)
- f{name{^file}} Go to frame (first) {in file} (replace backtrack)
- H Add note to notepad
- h Remove note from notepad
- I Select next input field
- Jnn Unconditional jump (in script)
- jxnn Conditional jump (in script)
- Kkkaction Map key kk to action
- kk = F1-F0,S1-S0,A1-A0,C1-C0,=x
- Lname Label name - in script. No action otherwise.
- lvnamed Load variable v into named variable 'named'
- Mname Global menu
- mname local menu
- Nname Global note
- nname local note
- Oos Set run flag o(1=menusym,2=backtrack,3=savescr,
- 4=autoref,7=tracing) to s(0=off,1=on)
- Set colour option o(A-Z - See below)
- ostring Output to printer or other output device
- Pstring Pop message with string in it
- pstring Display message with string in it (no wait)
- Q Quit to DOS
- q Quit script
- R Read file (formatted)
- rfilename Open file for reading (close if no param)
- Sname Global script
- sname local script
- Tfilename Type file
- tfilename Display file as popup note
- Vxvalue Set variable x to value
- vxvalue Test variable x
- Wstring Write string to file
- wfilename Open file for writing (close if no param)
- Xcomm args Execute command with arguments
- xcomm args Execute command with arguments (no wait)
- Y Reset error status to zero
- yx Refresh frame display (if param, display next page)
-
- Action modifiers
-
- In place of direct values (if second letter not modifier, tries third)
- on actions.
-
- ?prompt Issue prompt, get string and pass back as
- parameter to action
-
- %envvar Use value of environment variable as action parameter
-
- &funcspec Use resulting string from function evaluation
-
- @menuspec Use chosen value/action from menu display
-
- + 'Next' frame in current file
-
- !{F/L/R}{key} next line from input file / noted references
-
- = integer arithmetic expression (involving variables)
-
- Action modifier can be followed by '|pattern' where pattern contains
- instances of '%s' to replace with result of modifier. e.g.
-
- xxxxxx %s yyyyy %s zzzzz %s hhhhhh
-
- A maximum of three '%s' is allowed in the pattern.
-
- Function codes
-
- The available function codes are as follows:-
-
- L - Length of arg
- A - ASCII value of first char of arg
- C - character with ASCII value arg
- Nn - nth character in arg
- Sn - substring starting at nth character of arg
- T - Title of frame with name arg
- Mk - string mapped to key 'k'
- Uc - substring of arg up to, but not including character 'c'
- Fc - substring of arg from character 'c' inclusive
- Ic - index of character 'c' in arg, or 0 if not found
- K - character typed in response to arg as popup message
-
- Dynamic menus
-
- These are available via the @ action modifier, and replace
- the 'menuspec'.
-
- B Backtrack list as menu (returning level number)
- C Current Hyperfile contents list as menu
- Dwildspec Directory listing (extension stripped)
- dwildspec Directory listing (with extension)
- Ewildspec Directory listing (directories only)
- Ffilename Contents of file as popup menu
- Lwildspec Extended directory display
- lwildspec Extended directory display with actions added
- M(or m)name Global/local menu
- N(n or t)name Global/local/file note
- R Notepad paged display
- Sstring Search for string in titles of current file
- sstring Search for string in titles of open files
- Xstring Search for string in titles and texts of current file
- xstring Search for string in titles and texts of open files
-
- Option codes
-
- Showing option code, command line flag, and default setting.
-
- 0 -n Notepad file creation (off)
- 1 -f Symbols on menus (on)
- 2 -b Backtrack recording (on)
- 3 -x Notepad reference extension (on)
- 4 -a Auto reference (off)
- 5 -p Enable printer (off)
- 6 -r Display remaining space on exit (off)
- 7 -t Script label tracing (off)
- 8 -w Give warning of unavailable references (on)
- 9 -k,-l Verbatim 'T' listing
-
- Colours
-
- Option names for colour settings (with defaults) are:-
-
- A wB Action reference
- B WK(bl) (Blink)
- C yB Menu choice
- D KW Default title
- E yK Frame reference (replace)
- F wK Frame reference (stack)
- G KK (Ghost)
- H KR Menu heading
- I yY Input field
- J KG Note heading and border
- K yG Note
- L RK (Low intensity)
- M KW Menu reference
- N gK Note reference
- O KY Menu selection
- P yR(bl) Popup message
- Q wR(bl) (Quick)
- R KW Request / message
- S yG Script reference
- T WK Frame text
- U YK (User 1)
- V MK (User 2)
- W GK (User 3)
- X RK (User 4)
- Y BK (User 5)
- Z rK (User 6)
-
- Colour codes
-
- K Black
- B Blue
- G Green
- C Cyan
- R Red
- M Magenta
- Y Yellow (brown)
- W White (light grey)
- k Dark grey (Foreground only)
- b Light blue (Foreground only)
- g Light green (Foreground only)
- c Light Cyan (Foreground only)
- r Light red (Foreground only)
- m Light magenta (Foreground only)
- y Light yellow (Foreground only)
- w Bright white (Foreground only)
-
- Error codes
-
- The following error codes are set in variable '?'. The variable is
- only reset on command (by the 'Y' action).
-
-
- 0 Success - (after status cleared)
- 1 Operation cancelled
- 2 No choice from menu
- 3 End of file when reading
- 4 Cannot open file
- 5 File is not open
- 6 File is already open
- 7 File has changed
- 8 At start of backtrack
- 9 Divide by 0 in expression
- 10 Value not expected in expression
- 11 Value expected in expression
- 12 Undefined opcode in expression
- 13 Unmatched parenthesis in expression
- 14 Syntax error in expression
- 15 Script not available
- 16 Menu not available
- 17 Note not available
- 18 Frame not available
- 19 Key not defined
- 20 Invalid key code
- 21 Local reference - cannot be noted
- 22 Not at reference when key pressed
- 23 Key not mapped
- 24 No action or action disabled
- 25 Invalid action code
- 26 No command present
- 27 Environment variable not defined
- 28 Invalid dynamic menu
- 29 Line too wide for screen
- 30 String too long
- 31 Too many lines in frame
- 32 Maximum script size reached
- 33 Maximum menu size reached
-
- Conditions
-
- The following condition codes are used in the 'a' and 'j' action.
-
- e variable equals string (lexical or numeric)
- n variable not equal to string
- g variable greater than string (lexical or numeric)
- l variable less than string (lexical or numeric)
- d variable is defined
- u variable is undefined
- c variable contains string
- w variable is contained within string
- s jump if error status set
- o jump if error status O.K.
-
- Reserved characters
-
- The following characters cannot appear within the second (or
- third if the second is not one of them) position of an action
- specification, apart from for their stated purpose.
-
- @ Dynamic menu
- & String function
- ! Read record
- + Next framename
- = Expression evaluation
- % Environment variable
- ? Prompted input
-
- The following characters cannot appear in the body of an action
- specification, apart from for their stated purpose.
-
- $ Variable expansion token
- | Action modifier pattern specification
- ^ (Within frame names) Hyperfile separator
- ; Multiple action separator
-
- The following characters cannot appear within frame text, apart from
- for their stated purpose.
-
- ~ Reference and formatting directive flag
- $ Variable expansion token
- . (At beginning of line) Section flag
-
- -------------------------------------------------------------------
-